	
//账户充值
$("#submitApply").click(function(){
		var money = $("#rechargeNum").val();
		if(checkRecharge()){
			var param = {money : money};
			$.ajax({
				url : '/Lvscore_Advertiser_Maven/saveMoney',
				data : param,
				type : 'post',
				dataType:"json",
				success : function(data){
					if(data.status == -1){
						
					}else{
						var path=escape('selectedNav=0&navPos=3');
						window.location.href = "/Lvscore_Advertiser_Maven/advertiserWeb/views/userCenter/recharge/selectBank.html?"+path;
					}
				},
				error : function(xhr){
					 console.log("readyState" + xhr.readyState + "status" + xhr.status);
				}
			});
		}
		
	})

//金额校验
function checkRecharge(){
  var money = $("#rechargeNum").val();
    if(money!=null&&money!=""){
		 if(money>=100){
			$("#error_Num").html("");
			return true;
		 }else{
			$("#error_Num").html("*金额输入有误");
			return false;
		 }
	}else{
		$("#error_Num").html("*请输入金额");
		return false;
	}
}
	
//点击enter执行点击事件
function keyLogin(event){
    if(event.keyCode==13){
		$("#submitApply").click();
		}
	}
	
	